package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 职位对象 yg_position
 * 
 * @author ruoyi
 * @date 2022-12-01
 */
public class YgPosition extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 职位主键id */
    private Long pid;

    /** 职位名称 */
    @Excel(name = "职位名称")
    private String pname;

    /** 负责人 */
    @Excel(name = "负责人")
    private Long principal;

    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }
    public void setPname(String pname) 
    {
        this.pname = pname;
    }

    public String getPname() 
    {
        return pname;
    }
    public void setPrincipal(Long principal) 
    {
        this.principal = principal;
    }

    public Long getPrincipal() 
    {
        return principal;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("pid", getPid())
            .append("pname", getPname())
            .append("principal", getPrincipal())
            .toString();
    }
}
